package com.shyroke.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shyroke.entity.PiZhu;

public interface PiZhuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PiZhu record);

    int insertSelective(PiZhu record);

    PiZhu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PiZhu record);

    int updateByPrimaryKey(PiZhu record);

	void deleteByPID(@Param("xiaoshuoid")Integer xiaoshuoid, @Param("userId")Integer userId, @Param("pId")Integer pId);

	List<PiZhu> selectByUserIdAndXiaoshuoID(@Param("userId")Integer userId,@Param("xiaoshuoid") Integer xiaoshuoid);

	PiZhu selectByPid(@Param("userId")Integer userId, @Param("pId")Integer pId, @Param("xiaoshuoId")Integer xiaoshuoId);
}